Skip to content

Improve llms.txt aggregate coverage#51

Merged
hongyi-chen merged 1 commit into
mainfrom
oz/afdocs-llms-coverage-20260510160809
May 11, 2026
Merged

Improve llms.txt aggregate coverage#51
hongyi-chen merged 1 commit into
mainfrom
oz/afdocs-llms-coverage-20260510160809

Conversation

@hongyi-chen
Copy link
Copy Markdown
Collaborator

Summary

  • Adds canonical page links to each generated starlight-llms-txt page section
  • Preserves the existing exclusion behavior for full and custom llms aggregates
  • Improves AFDocs coverage matching by exposing every included page URL directly in aggregate text files

Verification

  • npx --yes -p node@22 -p npm npm run build
  • npx --yes -p node@22 -p npm npm run typecheck
  • Confirmed generated dist/llms-full.txt includes 313 canonical page links; only /api/ and the intentionally excluded open-source licenses page are absent from aggregate coverage

This PR was created by Oz (running Codex).

Add canonical page links to each generated starlight-llms-txt page section so AFDocs can match aggregate documentation back to sitemap URLs.

Co-Authored-By: Oz <[email protected]>
@cla-bot cla-bot Bot added the cla-signed label May 10, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Error Error May 10, 2026 4:08pm

Request Review

@hongyi-chen hongyi-chen marked this pull request as ready for review May 10, 2026 19:55
@hongyi-chen hongyi-chen merged commit 7d6185a into main May 11, 2026
7 of 10 checks passed
hongyi-chen added a commit that referenced this pull request May 11, 2026
…_modules (#62)

Vercel restores node_modules from the build cache before running the
install command. With `npm install`, the cached files are kept in place
and patch-package then runs against a pre-patched starlight-llms-txt,
causing the postinstall step to fail with 'Failed to apply patch for
package starlight-llms-txt' on every deploy after #51.

`npm ci` deletes node_modules before installing, so patch-package
always runs against the pristine npm tarball.

Co-authored-by: Oz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants